<?php

class Ext_Fastdfs
{
    protected static $_instance = null;

    public static function getInstance()
    {
        if (null === self::$_instance) {
            self::$_instance = new self();
        }

        return self::$_instance;
    }
    
    public function __construct()
    {
    }
    
    public function upload($file)
    {
        return Ext_Fastdfs_Upload::getInstance()->upload($file);
    }
    
}
